<?php

use yii\db\Migration;

class m160115_065302_company_branch_department_name_not_null extends Migration
{
    public function up()
    {
        $this->alterColumn('company','name',$this->string(100)->notNull());
        $this->alterColumn('branch','name',$this->string(100)->notNull());
        $this->alterColumn('department','name',$this->string(100)->notNull());
    }

    public function down()
    {
    }

    /*
    // Use safeUp/safeDown to run migration code within a transaction
    public function safeUp()
    {
    }

    public function safeDown()
    {
    }
    */
}
